package com.lhy.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lhy.order.entity.Order;
import com.lhy.order.vo.PageVo;
import com.lhy.order.vo.RegionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    RegionVo getByRegion(@Param("city") String city,@Param("region") String region);

    RegionVo getByCity(@Param("province") String province,@Param("city") String city);

    void insertByMyself(@Param("order") Order order);

    List<Order> selectPageByMyself(@Param("page") int page, @Param("size") int size);


    PageVo selectByMyself();

    Order getByUIdAndVId(@Param("uId") Integer uId,@Param("vId") Integer vId);

    List<Order> getOrderByUserId(@Param("uid") String uid);
}
